package swa2.icecream.decorator;

import swa2.icecream.IceCream;

public class GreekCherrySauce extends CherrySauce
{

	private static final Double PRICE = 0.05;
	private static final String DESCR = " with cherry";
	
	public GreekCherrySauce(IceCream ic)
	{
		super(ic);
	}

	@Override
	public Double getPrice()
	{
		Double pr = PRICE;
		
		if(this.icecream != null)
			pr += icecream.getPrice();
		
		return pr;
	}

	@Override
	public String getDescription() {

		String descr  = DESCR;
		
		if(this.icecream != null)
			descr = icecream.getDescription() + descr;
		
		return descr;
	}

}
